package adil.common.jfinal.controller;

import java.util.List;

import com.jfinal.core.Controller;

import adil.common.jfinal.model.AEmployee;
import adil.common.jfinal.service.employee.EmployeeService;

/**
* @author Adil_李园
* @version 创建时间：2017年11月1日 上午9:42:04
*/
public class EmployeeController extends Controller {
	private  EmployeeService  employeeService = enhance(EmployeeService.class);
	
	public void login() {
		System.out.println("进入login方法");
		String name  = getPara("name");
		List<AEmployee> list = employeeService.findEmployeeByName(name);
		System.out.println(name);
		setAttr("name", list);
		render("home.html");
	}
}
